--私聊回复
return function(qq,msg)
    
    -- 百分百回复
    local oCommon = apiXmlGet("","ocommon",msg)
    if oCommon ~= "" then
        sendMessage(oCommon)
        return true
    end
    
   --通用回复
   if not msg:find("%[CQ:") then
        -- local replyCommon = apiXmlReplayGet("", "common", msg)
        -- sendMessage(replyCommon)
        local replyCommon = apiXmlReplayGet("","common",msg)
        local replyrecord = apiXmlReplayGet("record\\"..mettle,"replayrecord",msg)
        local userecord = apiXmlReplayGet("record","userecord",msg)
        --文字回复
        if replyCommon ~= "" then
            sendMessage(replyCommon)
            return true
        end
        --语音回复
        if userecord== "" and replyrecord ~= "" then
            sendMessage(cqCqCode_Record(mettle.."\\"..replyrecord))
            return true
        elseif userecord~= "" and replyrecord == ""then
            sendMessage(cqCqCode_Record(userecord))
            return true
        elseif userecord~= "" and replyrecord ~= ""then
            sendMessage(math.random(1,2)==1 and cqCqCode_Record(userecord) or cqCqCode_Record(mettle.."\\"..replyrecord))
            return true
        end
        --图片回复
        if string.len(msg) < 45 then
            apiHttpImagesDownload("https://www.doutula.com/search?keyword="..msg:gsub("\r\n",""),"image\\user\\"..msg:gsub("\r\n",""))
            if cqSendPrivateMessage(qq,cqCqCode_Image(msg:gsub("\r\n","").."\\"..math.random(1,10)..".jpg")) == -11 then
                sendMessage(cqCqCode_Image("user\\"..msg:gsub("\r\n","").."\\1.jpg") )
            end
            return true
        end
        return true
    end
    return handled
end